package pck_ServiceFactory;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.os.Debug;
import android.util.Log;
import baseClass.Global;
import com.nPones.MainActivity;
import pck_ImageLoader.ImageLoadManager;

public class CharacterFactory
{
  private int iCounterInstance = 0;
  public Bitmap[] m_bitmap;
  
  public String Make00Number(int paramInt)
  {
    if (paramInt >= 10) {
      return paramInt;
    }
    return "0" + paramInt;
  }
  
  public void SetBitmapImage(ImageLoadManager paramImageLoadManager, String paramString1, String paramString2)
  {
    this.m_bitmap[this.iCounterInstance] = BitmapFactory.decodeFile(paramImageLoadManager.GetDirectory(paramString1, paramString2));
    this.iCounterInstance += 1;
    Log.v("test", "Draw Complete : " + paramString2);
  }
  
  public void loadCharacter01(int paramInt, Context paramContext)
  {
    new Matrix().setScale(-1.0F, 1.0F);
    this.iCounterInstance = 0;
    ImageLoadManager localImageLoadManager = new ImageLoadManager();
    int i;
    if (paramInt != -1)
    {
      this.m_bitmap = new Bitmap[pck_Service01.service_ServiceGlobal.iSumOfBitmapNumber];
      i = 1;
      if (i > pck_Service01.service_ServiceGlobal.iWalkNum)
      {
        i = 1;
        label55:
        if (i <= pck_Service01.service_ServiceGlobal.iWalkNum) {
          break label499;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_top.png");
        i = 1;
        label93:
        if (i <= pck_Service01.service_ServiceGlobal.iTopMoveNum) {
          break label559;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_drop.png");
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_touch.png");
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_left.png");
        i = 1;
        label185:
        if (i <= pck_Service01.service_ServiceGlobal.iLeft_MoveNum) {
          break label619;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_right.png");
        i = 1;
        label223:
        if (i <= pck_Service01.service_ServiceGlobal.iLeft_MoveNum) {
          break label679;
        }
        i = 1;
        label234:
        if (i <= pck_Service01.service_ServiceGlobal.iAnimaPose00Num) {
          break label739;
        }
        if (pck_Service01.service_ServiceGlobal.iAnimaPoseNumber >= 2)
        {
          i = 1;
          label252:
          if (i <= pck_Service01.service_ServiceGlobal.iAnimaPose01Num) {
            break label799;
          }
        }
        if (pck_Service01.service_ServiceGlobal.iAnimaPoseNumber >= 3)
        {
          i = 1;
          label270:
          if (i <= pck_Service01.service_ServiceGlobal.iAnimaPose02Num) {
            break label859;
          }
        }
        if (pck_Service01.service_ServiceGlobal.iAnimaPoseNumber >= 4)
        {
          i = 1;
          label288:
          if (i <= pck_Service01.service_ServiceGlobal.iAnimaPose03Num) {
            break label919;
          }
        }
        if (pck_Service01.service_ServiceGlobal.iAnimaPoseNumber >= 5)
        {
          i = 1;
          label306:
          if (i <= pck_Service01.service_ServiceGlobal.iAnimaPose04Num) {
            break label979;
          }
        }
        if (pck_Service01.service_ServiceGlobal.iAnimaPoseNumber >= 6)
        {
          i = 1;
          label325:
          if (i <= pck_Service01.service_ServiceGlobal.iAnimaPose05Num) {
            break label1039;
          }
        }
        Log.v("test", "사용된 총 이미지의 갯수 : " + this.iCounterInstance);
      }
    }
    for (;;)
    {
      Log.v("test", "-= Service Created Heap Size Debugger =-");
      Log.v("test", "After Call Service_NativeHeapSize : " + Debug.getNativeHeapSize());
      Log.v("test", "After Call Service_NativeHeapFree : " + Debug.getNativeHeapFreeSize());
      Log.v("test", "After Call Service_NativeHeapAllo : " + Debug.getNativeHeapAllocatedSize());
      return;
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_walk_left" + Make00Number(i) + ".png");
      i += 1;
      break;
      label499:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_walk_right" + Make00Number(i) + ".png");
      i += 1;
      break label55;
      label559:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_top_move" + Make00Number(i) + ".png");
      i += 1;
      break label93;
      label619:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_left_move" + Make00Number(i) + ".png");
      i += 1;
      break label185;
      label679:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_right_move" + Make00Number(i) + ".png");
      i += 1;
      break label223;
      label739:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_default" + Make00Number(i) + ".png");
      i += 1;
      break label234;
      label799:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose01_" + Make00Number(i) + ".png");
      i += 1;
      break label252;
      label859:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose02_" + Make00Number(i) + ".png");
      i += 1;
      break label270;
      label919:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose03_" + Make00Number(i) + ".png");
      i += 1;
      break label288;
      label979:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose04_" + Make00Number(i) + ".png");
      i += 1;
      break label306;
      label1039:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose05_" + Make00Number(i) + ".png");
      i += 1;
      break label325;
      this.m_bitmap = new Bitmap[1];
      this.m_bitmap[0] = BitmapFactory.decodeResource(paramContext.getResources(), 2130837511);
      Global.GetInstance().m_activity.StopServiceView();
    }
  }
  
  public void loadCharacter02(int paramInt, Context paramContext)
  {
    new Matrix().setScale(-1.0F, 1.0F);
    this.iCounterInstance = 0;
    ImageLoadManager localImageLoadManager = new ImageLoadManager();
    int i;
    if (paramInt != -1)
    {
      this.m_bitmap = new Bitmap[pck_Service02.service_ServiceGlobal.iSumOfBitmapNumber];
      i = 1;
      if (i > pck_Service02.service_ServiceGlobal.iWalkNum)
      {
        i = 1;
        label55:
        if (i <= pck_Service02.service_ServiceGlobal.iWalkNum) {
          break label499;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_top.png");
        i = 1;
        label93:
        if (i <= pck_Service02.service_ServiceGlobal.iTopMoveNum) {
          break label559;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_drop.png");
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_touch.png");
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_left.png");
        i = 1;
        label185:
        if (i <= pck_Service02.service_ServiceGlobal.iLeft_MoveNum) {
          break label619;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_right.png");
        i = 1;
        label223:
        if (i <= pck_Service02.service_ServiceGlobal.iLeft_MoveNum) {
          break label679;
        }
        i = 1;
        label234:
        if (i <= pck_Service02.service_ServiceGlobal.iAnimaPose00Num) {
          break label739;
        }
        if (pck_Service02.service_ServiceGlobal.iAnimaPoseNumber >= 2)
        {
          i = 1;
          label252:
          if (i <= pck_Service02.service_ServiceGlobal.iAnimaPose01Num) {
            break label799;
          }
        }
        if (pck_Service02.service_ServiceGlobal.iAnimaPoseNumber >= 3)
        {
          i = 1;
          label270:
          if (i <= pck_Service02.service_ServiceGlobal.iAnimaPose02Num) {
            break label859;
          }
        }
        if (pck_Service02.service_ServiceGlobal.iAnimaPoseNumber >= 4)
        {
          i = 1;
          label288:
          if (i <= pck_Service02.service_ServiceGlobal.iAnimaPose03Num) {
            break label919;
          }
        }
        if (pck_Service02.service_ServiceGlobal.iAnimaPoseNumber >= 5)
        {
          i = 1;
          label306:
          if (i <= pck_Service02.service_ServiceGlobal.iAnimaPose04Num) {
            break label979;
          }
        }
        if (pck_Service02.service_ServiceGlobal.iAnimaPoseNumber >= 6)
        {
          i = 1;
          label325:
          if (i <= pck_Service02.service_ServiceGlobal.iAnimaPose05Num) {
            break label1039;
          }
        }
        Log.v("test", "사용된 총 이미지의 갯수 : " + this.iCounterInstance);
      }
    }
    for (;;)
    {
      Log.v("test", "-= Service Created Heap Size Debugger =-");
      Log.v("test", "After Call Service_NativeHeapSize : " + Debug.getNativeHeapSize());
      Log.v("test", "After Call Service_NativeHeapFree : " + Debug.getNativeHeapFreeSize());
      Log.v("test", "After Call Service_NativeHeapAllo : " + Debug.getNativeHeapAllocatedSize());
      return;
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_walk_left" + Make00Number(i) + ".png");
      i += 1;
      break;
      label499:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_walk_right" + Make00Number(i) + ".png");
      i += 1;
      break label55;
      label559:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_top_move" + Make00Number(i) + ".png");
      i += 1;
      break label93;
      label619:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_left_move" + Make00Number(i) + ".png");
      i += 1;
      break label185;
      label679:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_right_move" + Make00Number(i) + ".png");
      i += 1;
      break label223;
      label739:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_default" + Make00Number(i) + ".png");
      i += 1;
      break label234;
      label799:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose01_" + Make00Number(i) + ".png");
      i += 1;
      break label252;
      label859:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose02_" + Make00Number(i) + ".png");
      i += 1;
      break label270;
      label919:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose03_" + Make00Number(i) + ".png");
      i += 1;
      break label288;
      label979:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose04_" + Make00Number(i) + ".png");
      i += 1;
      break label306;
      label1039:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose05_" + Make00Number(i) + ".png");
      i += 1;
      break label325;
      this.m_bitmap = new Bitmap[1];
      this.m_bitmap[0] = BitmapFactory.decodeResource(paramContext.getResources(), 2130837511);
      Global.GetInstance().m_activity.StopServiceView();
    }
  }
  
  public void loadCharacter03(int paramInt, Context paramContext)
  {
    new Matrix().setScale(-1.0F, 1.0F);
    this.iCounterInstance = 0;
    ImageLoadManager localImageLoadManager = new ImageLoadManager();
    int i;
    if (paramInt != -1)
    {
      this.m_bitmap = new Bitmap[pck_Service03.service_ServiceGlobal.iSumOfBitmapNumber];
      i = 1;
      if (i > pck_Service03.service_ServiceGlobal.iWalkNum)
      {
        i = 1;
        label55:
        if (i <= pck_Service03.service_ServiceGlobal.iWalkNum) {
          break label499;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_top.png");
        i = 1;
        label93:
        if (i <= pck_Service03.service_ServiceGlobal.iTopMoveNum) {
          break label559;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_drop.png");
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_touch.png");
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_left.png");
        i = 1;
        label185:
        if (i <= pck_Service03.service_ServiceGlobal.iLeft_MoveNum) {
          break label619;
        }
        SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_right.png");
        i = 1;
        label223:
        if (i <= pck_Service03.service_ServiceGlobal.iLeft_MoveNum) {
          break label679;
        }
        i = 1;
        label234:
        if (i <= pck_Service03.service_ServiceGlobal.iAnimaPose00Num) {
          break label739;
        }
        if (pck_Service03.service_ServiceGlobal.iAnimaPoseNumber >= 2)
        {
          i = 1;
          label252:
          if (i <= pck_Service03.service_ServiceGlobal.iAnimaPose01Num) {
            break label799;
          }
        }
        if (pck_Service03.service_ServiceGlobal.iAnimaPoseNumber >= 3)
        {
          i = 1;
          label270:
          if (i <= pck_Service03.service_ServiceGlobal.iAnimaPose02Num) {
            break label859;
          }
        }
        if (pck_Service03.service_ServiceGlobal.iAnimaPoseNumber >= 4)
        {
          i = 1;
          label288:
          if (i <= pck_Service03.service_ServiceGlobal.iAnimaPose03Num) {
            break label919;
          }
        }
        if (pck_Service03.service_ServiceGlobal.iAnimaPoseNumber >= 5)
        {
          i = 1;
          label306:
          if (i <= pck_Service03.service_ServiceGlobal.iAnimaPose04Num) {
            break label979;
          }
        }
        if (pck_Service03.service_ServiceGlobal.iAnimaPoseNumber >= 6)
        {
          i = 1;
          label325:
          if (i <= pck_Service03.service_ServiceGlobal.iAnimaPose05Num) {
            break label1039;
          }
        }
        Log.v("test", "사용된 총 이미지의 갯수 : " + this.iCounterInstance);
      }
    }
    for (;;)
    {
      Log.v("test", "-= Service Created Heap Size Debugger =-");
      Log.v("test", "After Call Service_NativeHeapSize : " + Debug.getNativeHeapSize());
      Log.v("test", "After Call Service_NativeHeapFree : " + Debug.getNativeHeapFreeSize());
      Log.v("test", "After Call Service_NativeHeapAllo : " + Debug.getNativeHeapAllocatedSize());
      return;
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_walk_left" + Make00Number(i) + ".png");
      i += 1;
      break;
      label499:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_walk_right" + Make00Number(i) + ".png");
      i += 1;
      break label55;
      label559:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_top_move" + Make00Number(i) + ".png");
      i += 1;
      break label93;
      label619:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_left_move" + Make00Number(i) + ".png");
      i += 1;
      break label185;
      label679:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_right_move" + Make00Number(i) + ".png");
      i += 1;
      break label223;
      label739:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_default" + Make00Number(i) + ".png");
      i += 1;
      break label234;
      label799:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose01_" + Make00Number(i) + ".png");
      i += 1;
      break label252;
      label859:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose02_" + Make00Number(i) + ".png");
      i += 1;
      break label270;
      label919:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose03_" + Make00Number(i) + ".png");
      i += 1;
      break label288;
      label979:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose04_" + Make00Number(i) + ".png");
      i += 1;
      break label306;
      label1039:
      SetBitmapImage(localImageLoadManager, "Character" + Make00Number(paramInt), "char_pose05_" + Make00Number(i) + ".png");
      i += 1;
      break label325;
      this.m_bitmap = new Bitmap[1];
      this.m_bitmap[0] = BitmapFactory.decodeResource(paramContext.getResources(), 2130837511);
      Global.GetInstance().m_activity.StopServiceView();
    }
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     pck_ServiceFactory.CharacterFactory
 * JD-Core Version:    0.7.0.1
 */